package demo11_1;

interface A {
    void testA();
}
public class Test11_1 {
    public static void main(String[] args) {
        int x = 10;
//        x = 100;
        A a = new A(){
            @Override
            public void testA() {
                System.out.println(x);
            }
        };
        a.testA();
    }
}

